package com.th.system.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.th.system.domain.UsTaskRequire;

import java.util.List;

/**
 * @author ValcanoZz
 * @creat 2023-06-23-9:46
 */

public interface UsTaskRequireService extends IService<UsTaskRequire> {

    /**
     * 任务需求写入数据库
     * @param usTaskRequire
     * @return
     */
    public Boolean insertRequires(List<UsTaskRequire> usTaskRequire);

    public List<UsTaskRequire> selectRequiresByTask(Long taskId);

    public List<UsTaskRequire> selectRequiresByTask(LambdaQueryWrapper<UsTaskRequire> wrapper);

    public void updateRequires(List<UsTaskRequire> requires);

    public void updateOne(UsTaskRequire usTaskRequire);

    public void deleteRequire(Long id);

    public void deleteRequireByTaskId(Long id);
}
